package com.cloudcc.mobile.manager;

import android.content.Context;

import com.cloudcc.mobile.AppConfig;
import com.cloudcc.mobile.AppContext;
import com.cloudcc.mobile.util.PreferenceUtils;

/** 
* @Description: 私有云 缓存管理
* @author wangzhiqiang
* @date 2015-12-2 下午5:07:23 
*  
*/
public class PrivateCloudCacheManager {

	private static PrivateCloudCacheManager manager;
	private Context context;
	private final String XML = AppConfig.XML_PRIVATE;
	private PrivateCloudCacheManager(Context context){
		this.context =context;
	}
	
	
	public static PrivateCloudCacheManager getInstance(){
		if (manager==null) {
			manager =new PrivateCloudCacheManager(AppContext.getInstance());
		}
		return manager;
	}
	
	
	
	/** 获得 组织名
	 * @return
	 */
	public String getGroupName(){
		return PreferenceUtils.getString(context, XML,"private.groupname", "");
	}
	/** 缓存组织名
	 * @param groupName
	 */
	public void setGroupName(String groupName){
		PreferenceUtils.commitString(context, XML,"private.groupname", groupName);
	}
	
	
	
	
	
	
	
	
}
